<template>
  <div class="app">
      <h2>我是App组件</h2>
      <hr>
      <student :msg="msg" :money="money" :car="car"/>
  </div>
</template>

<script>
    import Student from '../components/Student.vue';

    export default {
        name:'App',
        components:{Student},
        data(){
            return{
                msg:'你要努力赚钱呀！',
                money:1000000,
                car:{name:'奥拓',price:50000,age:3}
            }
        }
  }
</script>

<style scoped>
  .app{
      background-color: rgb(227, 146, 235);
      padding: 30px;
  }
</style>